<%--
  Created by IntelliJ IDEA.
  User: Волков Олег
  Date: 19.12.14
  Time: 17:05
  To change this template use File | Settings | File Templates.
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" %>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>

<f:subview id="menu">
    <h:form prependId="false">
    <rich:toolBar id="toolbar">

        <rich:menuItem onclick="document.location.href='start'"
                       value="На главную"
                       submitMode="none"
                       />
        <rich:menuItem onclick="document.location.href='sk1'"
                       value="Заказ на сборку"
                       submitMode="none"
                       rendered="#{!SecurityBean.isRoleKassa}"/>
        <rich:menuItem onclick="document.location.href='StorekeeperOutOrders.jsf'"
                       value="Собрано"
                       submitMode="none"
                       rendered="#{!SecurityBean.isRoleKassa}"/>
        <rich:menuItem onclick="document.location.href='razvoz'"
                       value="Развоз"
                       submitMode="none"
                       />
        <rich:menuItem onclick="document.location.href='StorekeperReserves.jsf'"
                       value="Резервы"
                       submitMode="none"
                       rendered="false"/>
        <rich:menuItem onclick="document.location.href='history'"
                       value="Архив"
                       submitMode="none"
                       rendered="#{SecurityBean.isRoleAdministrator || SecurityBean.isRoleStoreman}"/>
        <rich:dropDownMenu value="Управление остатками склада" event="onclick" rendered="#{SecurityBean.canEditeStorageCount}" style="color: #000000;">
            <rich:menuItem onclick="document.location.href='ostatki_na_sklade'"
                           value="Остатки"
                           submitMode="none"/>
            <rich:menuItem onclick="document.location.href='dvizenie_ostatkov_sklada'"
                           value="Архив операций"
                           submitMode="none"/>
            <rich:menuItem onclick="document.location.href='vozvrati_na_sklade'"
                           value="Возвраты"
                           submitMode="none"/>

        </rich:dropDownMenu>
    </rich:toolBar>
    </h:form>
    <jsp:include page="restExportBaner.jsp"/>
</f:subview>